package Project2.junitframe;

import Project2.junitframe.annotation.*;
import Project2.testjunit4.AppConfig;
import Project2.testjunit4.Calculator;
import Project2.testjunit4.Person;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;


public class App {
	@MyBefore
	public void before(){
		System.out.println("before");
	}
	
	@MyBefore
	public void before2(){
		System.out.println("before2");
	}
	
	@MyTest
	public void test01(){
		System.out.println("test01");
		System.out.println(Calculator.add(1, 2));
	}
	@MyTest
	public void test02(){
		System.out.println("test02");
		System.out.println(Calculator.sub(1, 2));
	}
	
	@MyAfter
	public void after(){
		System.out.println("after");
	}
	
	@MyBeforeClass
	public static void beforeClass(){
		System.out.println("beforeClass");
	}
	
	@MyIgnore
	public void ignore(){
		System.out.println("ignore");
	}
	
	@MyAfterClass
	public static void afterClass(){
		System.out.println("afterClass");
	}
}
